home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2001 / MacHack 2001.toast / pc / Papers / Garrison / Code / SchmoozingExamples / TCPCFSocket.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-06-23  |  1.1 KB  |  42 lines

  1. //  $Id: TCPCFSocket.h,v 1.8 2000/12/08 03:51:46 bgg Exp $
  2. //  Maxter
  3. //
  4. //  Created by bgg on Sat Nov 25 2000.
  5. //  Copyright (c) 2000 Object Craft P/L. All rights reserved.
  6.  
  7. #import <Foundation/Foundation.h>
  8. #import <OmniNetworking/OmniNetworking.h>
  9. #import <OmniBase/rcsid.h>
  10.  
  11. @interface TCPCFSocket : ONTCPSocket
  12. {
  13.     CFRunLoopSourceRef _runLoopSource;
  14.     CFSocketRef _cfSocketRef;
  15.     CFSocketContext _socketContext;
  16. }
  17.  
  18. - (void)dealloc;
  19.  
  20. // action methods
  21. - (void)dataAvailableWithNotification;
  22. - (void)acceptWithNotification;
  23. - (void)readWithNotification;
  24. - (void)removeFromRunLoop;
  25. - (void)acceptConnection;
  26.  
  27. // internal
  28. - (void)_invalidateSocket;
  29. - (void)_addToRunLoopWithCallBackType:(CFSocketCallBackType)callBackType;
  30. - (void)_processCallBackType:(CFSocketCallBackType)type withData:(NSData *)data;
  31.  
  32. @end
  33.  
  34. extern NSString *TCPCFSocketException;
  35. extern NSString *TCPCFSocketArgumentException;
  36.  
  37. extern NSString *TCPCFSocketDataAvailableNotification;
  38. extern NSString *TCPCFSocketAcceptedNotification;
  39. extern NSString *TCPCFSocketReadCompletionNotification;
  40.  
  41. extern NSString *TCPCFSocketNotificationONTCPSocketItem;
  42. extern NSString *TCPCFSocketNotificationDataItem;